export const projectChangeDescriptionFileds = (response) => {
  // 项目移交变更字段
  const projectTransferKeysDesc = reactive([
    {
      label: '项目流程类型',
      type: 'select',
      options: [
        {
          value: 'ICT成本（建设+运维模式）',
          label: 'ICT成本（建设+运维模式）'
        },
        {
          value: 'ICT成本（纯建设模式）',
          label: 'ICT成本（纯建设模式）'
        },
        {
          value: 'ICT成本（纯运维模式）',
          label: 'ICT成本（纯运维模式）'
        }
      ],
      filed: 'project_process_type',
      content: response.project_process_type
    },
    {
      label: '管理方式',
      type: 'select',
      options: [
        {
          value: '集团公司',
          label: '集团公司'
        },
        {
          value: '省公司',
          label: '省公司'
        },
        {
          value: '分公司',
          label: '分公司'
        }
      ],
      filed: 'management_mode',
      content: response.management_mode
    },
    {
      label: '投资主体',
      type: 'radioGroup',
      options: [
        {
          value: '上市公司',
          label: '上市公司'
        },
        {
          value: '非上市公司',
          label: '非上市公司'
        }
      ],
      filed: 'investment_type',
      content: response.investment_type
    },
    {
      label: '要求完成时间',
      type: 'datePicker',
      filed: 'required_finish_time',
      content: response.required_finish_time
    },
    {
      label: '业务类型',
      type: 'select',
      options: [
        {
          value: '纯软',
          label: '纯软'
        },
        {
          value: '纯硬',
          label: '纯硬'
        },
        {
          value: '软硬结合',
          label: '软硬结合'
        },
        {
          value: '服务',
          label: '服务'
        }
      ],
      filed: 'business_type',
      content: response.business_type
    },
    {
      label: '立项除税金额（元）',
      type: 'input',
      filed: 'init_cost_no_tax',
      content: response.init_cost_no_tax,
      validator: 'number'
    },
    {
      label: '是否含购销',
      type: 'radioGroup',
      options: [
        {
          value: 'true',
          label: '是'
        },
        {
          value: 'false',
          label: '否'
        }
      ],
      filed: 'purchase_and_sale',
      content: response.purchase_and_sale
    }
  ])

  const projectGradingKeysDesc = reactive([
    {
      label: '售前项目等级',
      type: 'select',
      options: [
        {
          value: 'Z-S',
          label: 'Z-S'
        },
        {
          value: 'Z-A',
          label: 'Z-A'
        },
        {
          value: 'Z-B',
          label: 'Z-B'
        },
        {
          value: 'Z-C',
          label: 'Z-C'
        },
        {
          value: 'Z-D',
          label: 'Z-D'
        }
      ],
      filed: 'project_level',
      content: response.project_level
    },
    {
      label: '客户重要程度',
      type: 'select',
      options: [
        {
          value: '3',
          label: '高'
        },
        {
          value: '2',
          label: '中'
        },
        {
          value: '1',
          label: '低'
        }
      ],
      filed: 'customer_importance',
      content: response.customer_importance
    },
    {
      label: '项目规模',
      type: 'input',
      filed: 'project_scale',
      content: response.project_scale,
      validator: 'number'
    },
    {
      label: '项目交付复杂度',
      type: 'input',
      filed: 'project_complexity',
      content: response.project_complexity,
      validator: 'number'
    },
    {
      label: '自有业务占比',
      type: 'input',
      filed: 'self_business_proportion',
      content: response.self_business_proportion,
      validator: 'number'
    },
    {
      label: '项目收益',
      type: 'input',
      filed: 'project_income',
      content: response.project_income,
      validator: 'number'
    },
    {
      label: '解决方案经理姓名',
      type: 'input',
      filed: 'solution_manager_name',
      content: response.solution_manager_name
    },
    {
      label: '解决方案经理电话',
      type: 'input',
      filed: 'solution_manager_phone',
      content: response.solution_manager_phone,
      validator: 'phone'
    },
    {
      label: '解决方案经理工号',
      type: 'input',
      filed: 'solution_manager_number',
      content: response.solution_manager_number
    }
  ])

  const startupReportingKeysDesc = reactive([
    {
      label: '开工时间',
      type: 'datePicker',
      filed: 'commencement_date',
      content: response.commencement_date
    }
  ])

  const testRunKeysDesc = reactive([
    {
      label: '试运行标题',
      type: 'input',
      filed: 'test_run_title',
      content: response.test_run_title
    }
  ])

  const projectDeliveryKeysDesc = reactive([
    {
      label: '施工单位',
      type: 'input',
      filed: 'construction_unit',
      content: response.construction_unit,
    },
    {
      label: '施工单位联系人',
      type: 'input',
      filed: 'construction_unit_contact',
      content: response.construction_unit_contact,
    },
    {
      label: '施工单位联系电话',
      type: 'input',
      filed: 'construction_unit_phone',
      content: response.construction_unit_phone,
      validator: 'phone'
    },
    {
      label: '维护单位',
      type: 'input',
      filed: 'maintenance_unit',
      content: response.maintenance_unit,
    },
    {
      label: '维护单位联系人',
      type: 'input',
      filed: 'maintenance_unit_contact',
      content: response.maintenance_unit_contact
    },
    {
      label: '维护单位联系电话',
      type: 'input',
      filed: 'maintenance_unit_phone',
      content: response.maintenance_unit_phone,
      validator: 'phone'
    },
    {
      label: '业主单位',
      type: 'input',
      filed: 'owner_unit',
      content: response.owner_unit
    },
    {
      label: '业主单位联系人',
      type: 'input',
      filed: 'owner_unit_contact',
      content: response.owner_unit_contact
    },
    {
      label: '业主单位联系电话',
      type: 'input',
      filed: 'owner_unit_phone',
      content: response.owner_unit_phone,
      validator: 'phone'
    },
    {
      label: '维保费（元）',
      type: 'input',
      filed: 'maintenance_cost',
      content: response.maintenance_cost,
      validator: 'number'
    },
    {
      label: '售前支撑的专业公司',
      type: 'input',
      filed: 'pre_sales_support_professional_company',
      content: response.pre_sales_support_professional_company
    },
    {
      label: '售中支撑的专业公司',
      type: 'input',
      filed: 'mid_sales_support_professional_company',
      content: response.mid_sales_support_professional_company
    },
    {
      label: '售后支撑的专业公司',
      type: 'input',
      filed: 'after_sales_support_professional_company',
      content: response.after_sales_support_professional_company
    },
    {
      label: '实际完成时间',
      type: 'datePicker',
      filed: 'actual_completion_time',
      content: response.actual_completion_time
    },
    // {
    //   label: '项目维护期',
    //   type: 'datePicker',
    //   filed: 'project_maintenance_period',
    //   content: response.project_maintenance_period
    // },
    {
      label: '维护起止时间（对业主）',
      type: 'dateRangePicker',
      filed: 'maintenance_start_end_time_owner',
      content: response.maintenance_start_time_owner && response.maintenance_end_time_owner
        ? response.maintenance_start_time_owner + " - " + response.maintenance_end_time_owner
        : response.maintenance_start_time_owner || response.maintenance_end_time_owner || ""
    },
    {
      label: '维护起止时间（对SI）',
      type: 'dateRangePicker',
      filed: 'maintenance_start_end_time_si',
      content: response.maintenance_start_time_si && response.maintenance_end_time_si
        ? response.maintenance_start_time_si + " - " + response.maintenance_end_time_si
        : response.maintenance_start_time_si || response.maintenance_end_time_si || ""
    },
    {
      label: '项目概述',
      type: 'textarea',
      filed: 'project_overview',
      content: response.project_overview
    },
    {
      label: '遗留问题记录',
      type: 'textarea',
      filed: 'legacy_issue_record',
      content: response.legacy_issue_record
    },
    {
      label: '遗留问题整改计划',
      type: 'textarea',
      filed: 'legacy_issue_correction_plan',
      content: response.legacy_issue_correction_plan
    },
    {
      label: '交维结论',
      type: 'textarea',
      filed: 'handover_and_maintenance_conclusion',
      content: response.handover_and_maintenance_conclusion
    }
  ])

  return {
    // 项目变更信息
    projectTransferKeysDesc,
    projectGradingKeysDesc,
    startupReportingKeysDesc,
    testRunKeysDesc,
    projectDeliveryKeysDesc
  }
}